package servidor;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="DISCIPLINA", schema="servidor")
public class Disciplina implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id	
	@Column(name="COD_DISCIPLINA", nullable = false)
	private String codigoDisciplina;
	
	@Column(name="NOM_DISCIPLINA", nullable = false)
	private String nome;
	public Disciplina(){}
	
	public Disciplina(String codigoDisciplina, String nome){
		setCodigoDisciplina(codigoDisciplina);
		setNome(nome);
	}
	public String getCodigoDisciplina() {
		return codigoDisciplina;
	}
	public void setCodigoDisciplina(String codigoDisciplina) {
		this.codigoDisciplina = codigoDisciplina;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String toString(){
		return "||"+getCodigoDisciplina()+'|'+getNome()+"||";
	}
}
